home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / sdidialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-11-08  |  5.5 KB  |  138 lines

  1. /******************************************************************/
  2. /*                                                                */
  3. /*                      TurboCAD for Windows                      */
  4. /*                   Copyright (c) 1993 - 2001                    */
  5. /*             International Microcomputer Software, Inc.         */
  6. /*                            (IMSI)                              */
  7. /*                      All rights reserved.                      */
  8. /*                                                                */
  9. /******************************************************************/
  10.  
  11. #if !defined(AFX_SDIDIALOG_H__13F08AB3_207F_11D2_A4B4_0000B465872B__INCLUDED_)
  12. #define AFX_SDIDIALOG_H__13F08AB3_207F_11D2_A4B4_0000B465872B__INCLUDED_
  13.  
  14. #if _MSC_VER >= 1000
  15. #pragma once
  16. #endif // _MSC_VER >= 1000
  17. // SdiDialog.h : header file
  18. //
  19. #include "Toollist.h"
  20. #include "ViewWnd.h"
  21. #include "SmObj.h"
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CSdiDialog dialog
  25.  
  26. class CSdiDialog : public CDialog
  27. {
  28. // Construction
  29. public:
  30.     BOOL BeginDrag(const CPoint& point);
  31.     void Drag(const CPoint& point);
  32.     void RestartDrag(const CPoint& point);
  33.     void EndDrag(const CPoint& point);
  34.     bool m_DraggingMode;
  35.     CExternalObjectsList m_list;     
  36.     CPreviewWnd m_wndView;
  37.  
  38.     VARIANT m_dragOutline;
  39.     IGraphic* m_pDragGraphic;
  40.     BOOL m_bDragging;
  41.     RegenMethods *m_pRegMets;
  42.  
  43.     HRESULT hRes;/// = S_OK;
  44.     DWORD m_dwEventConnection;
  45.  
  46.     
  47.     CString m_selected;
  48.     CSdiDialog(CInsSmObj* pTool, CWnd* pParent, RegenMethods *pRegMets);   // standard constructor
  49.  
  50.  
  51.  
  52. // Dialog Data
  53.     //{{AFX_DATA(CSdiDialog)
  54.     enum { IDD = IDD_DIALOG1 };
  55.     CString    m_listbox;
  56.     //}}AFX_DATA
  57.  
  58.     
  59.     ///    Graphics* m_pGrsVirt;
  60.     void ConnectEvents();
  61.     void DisconnectEvents();
  62.  
  63.     DECLARE_MESSAGE_MAP()
  64.  
  65.  
  66.     afx_msg void BeforeExit(LPDISPATCH TheApp, BOOL FAR* Cancel);
  67.     afx_msg void DrawingNew(LPDISPATCH WhichDrawing);
  68.     afx_msg void DrawingOpen(LPDISPATCH WhichDrawing);
  69.     afx_msg void DrawingActivate(LPDISPATCH WhichDrawing);
  70.     afx_msg void DrawingDeactivate(LPDISPATCH WhichDrawing);
  71.     afx_msg void DrawingBeforeClose(LPDISPATCH WhichDrawing, BOOL FAR* Cancel);
  72.     afx_msg void DrawingBeforeSave(LPDISPATCH WhichDrawing, BOOL FAR* SaveAs, BOOL FAR* Cancel);
  73.     afx_msg void WindowResize(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow);
  74.     afx_msg void WindowActivate(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow);
  75.     afx_msg void WindowDeactivate(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow);
  76.  
  77.     afx_msg void MouseDown(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, short Button, long Shift, long X, long Y, IMSI_BOOL* pbCancel);
  78.     afx_msg void MouseUp(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, short Button, long Shift, long X, long Y, IMSI_BOOL* pbCancel);
  79.     afx_msg void MouseMove(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, long Shift, long X, long Y, IMSI_BOOL* pbCancel);
  80.  
  81.     afx_msg void BeforeDoubleClick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Sel, BOOL FAR* Cancel);
  82.     afx_msg void BeforeRightClick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Sel, BOOL FAR* Cancel);
  83.     afx_msg void SelectionChange(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Sel);
  84.     afx_msg void CommandBarControlHit(LPDISPATCH WhichControl, BOOL FAR* Cancel);
  85.     afx_msg void CommandBarControlStatus(LPDISPATCH WhichControl);
  86.     afx_msg void RunTool(LPDISPATCH WhichTool);
  87.     afx_msg void PointSnapped(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, long XScreen, long YScreen, LPDISPATCH PointRaw, LPDISPATCH PointSnapped);
  88.     afx_msg void PointPick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH Result, BOOL PickWasCanceled);
  89.     afx_msg void RectanglePick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH Result, BOOL PickWasCanceled);
  90.     afx_msg void PolygonPick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH Result, BOOL PickWasCanceled);
  91.     afx_msg void ViewBeforeRedraw(LPDISPATCH WhichDrawing, LPDISPATCH WhichView);
  92.     afx_msg void ViewAfterRedraw(LPDISPATCH WhichDrawing, LPDISPATCH WhichView);
  93.     afx_msg void VirtualIntersectionPick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH PickResult, BOOL WasCanceled);
  94.     afx_msg void CommandBarControlDone(LPDISPATCH WhichControl);
  95.     afx_msg void Drop(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Selection);
  96.  
  97.     //}}AFX_DISPATCH
  98.     DECLARE_DISPATCH_MAP()
  99.     DECLARE_INTERFACE_MAP()
  100.  
  101. // Overrides
  102.     // ClassWizard generated virtual function overrides
  103.     //{{AFX_VIRTUAL(CSdiDialog)
  104.     protected:
  105.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  106.     virtual void PostNcDestroy();
  107.     //}}AFX_VIRTUAL
  108.  
  109. // Implementation
  110. protected:
  111.     CInsSmObj *m_pTool;
  112.     HICON m_hIcon;
  113.  
  114.     View* m_pTCADView;
  115.     CPoint m_ptMouseDown;
  116.  
  117.     // TurboCAD SDK:  Pointer to the running application.
  118.     IApplication* m_pIApplication;
  119.     DWORD m_dwEventMask;
  120.  
  121.     // Generated message map functions
  122.     //{{AFX_MSG(CSdiDialog)
  123.     virtual BOOL OnInitDialog();
  124.     afx_msg void OnClose();
  125.     afx_msg void OnSysCommand(UINT nID, LPARAM lParam );
  126.     afx_msg void OnInsertsymb();
  127.     //}}AFX_MSG
  128.     afx_msg void OnEventMask(UINT nID);
  129.  
  130.  
  131.  
  132. };
  133.  
  134. //{{AFX_INSERT_LOCATION}}
  135. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  136.  
  137. #endif // !defined(AFX_SDIDIALOG_H__13F08AB3_207F_11D2_A4B4_0000B465872B__INCLUDED_)
  138.